package com.tb.dubbo_service;

import com.tb.dubbo.IShopParamService;
import com.tb.mapper.ShopParamMapper;
import com.tb.pojo.ShopParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class ShopParamServiceImpl implements IShopParamService {

    @Autowired
    private ShopParamMapper shopParamMapper;

    @Override
    public int insert(ShopParam shopParam) {

        int flag = shopParamMapper.insert(shopParam);

        return flag;
    }

    @Override
    public ShopParam selectByShopParam(ShopParam shopParam) {
        ShopParam param = shopParamMapper.selectByShopParam(shopParam);
        return param;
    }

    @Override
    public int deleteShopParamByGoodsIdAndUserId(Map<String, Object> map) {
        int flag = shopParamMapper.deleteShopParamByGoodsIdAndUserId(map);
        return flag;
    }

    @Override
    public int deleteShopCar(Map<String, Object> map) {
        int flag = shopParamMapper.deleteShopCar(map);
        return flag;
    }
}
